﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.Cooperation.WebsiteCooperation
{
    /// <summary>
    /// 官网合作留言
    /// </summary>
    public class WebsiteCooperationRequestDto
    {
        /// <summary>
        /// 联系人
        /// </summary>		
        [Display(Name = "联系人")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string ContactPerson { get; set; }
        /// <summary>
        /// 公司
        /// </summary>		
        [Display(Name = "公司")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string Company { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>		
        [Display(Name = "联系电话")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 11, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string ContactPhone { get; set; }
        /// <summary>
        /// 职务
        /// </summary>		
        [Display(Name = "职务")]
        [StringLength(50, MinimumLength = 0, ErrorMessage = "{0} 输入长度应小于{1}")]
        public string JobTitle { get; set; }
        /// <summary>
        /// Email
        /// </summary>		
        [Display(Name = "Email")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string Email { get; set; }
        /// <summary>
        /// 合作需求
        /// </summary>		
        [Display(Name = "合作需求")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public string CooperationContent { get; set; }
    }
}

